Exemplo n.º 1
0
 def test_unicode_with_id(self):
     user_book = UserBookFactory.create()
     self.assertEqual(unicode(user_book), u'Book {0}'.format(user_book.id))
Exemplo n.º 2
0
 def test_unicode_without_id(self):
     user_book = UserBookFactory.build()
     self.assertEqual(unicode(user_book), u'Unregistered book')
Exemplo n.º 3
0
 def setUp(self):
     self.client = Client()
     self.userbook = UserBookFactory.create()