Exemplo n.º 1
0
 def test_str_2(self):
     "Has the correct string represntation when it has a user"
     user = UserFactory()
     account = AccountFactory(user=user)
     self.assertEqual(account.__str__(), '@%s' % user.screen_name)
Exemplo n.º 2
0
 def test_str_2(self):
     "Has the correct string represntation when it has a user"
     user = UserFactory()
     account = AccountFactory(user=user)
     self.assertEqual(account.__str__(), '@%s' % user.screen_name)
Exemplo n.º 3
0
 def test_str_1(self):
     "Has the correct string represntation when it has no user"
     account = AccountFactory(user=None)
     self.assertEqual(account.__str__(), '%d' % account.pk)
Exemplo n.º 4
0
 def test_str_1(self):
     "Has the correct string represntation when it has no user"
     account = AccountFactory(user=None)
     self.assertEqual(account.__str__(), '%d' % account.pk)