Created
October 21, 2017 09:38
-
-
Save guilatrova/5e62f00ab707f1ee41c9a084f2881113 to your computer and use it in GitHub Desktop.
Example of bad test examples testing framework itself
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_save_transaction(self): | |
t = Transaction.objects.create(description='django works', value=10, user=self.user) | |
self.assertIsNotNone(t.id) | |
self.assertEqual(Transaction.objects.count(), 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment