Exemplo n.º 1
0
 def test_user_model_attributes(self):
     """
     The callback should return at least a username attribute.
     """
     attributes = user_model_attributes(self.user, self.url)
     self.assertIn('username', attributes)
     self.assertEqual(attributes['username'], 'ellen')
Exemplo n.º 2
0
 def test_user_model_attributes(self):
     """The callback should return at least a username attribute."""
     attributes = user_model_attributes(self.user, 'http://www.example.com/')
     self.assertIn('username', attributes)
     self.assertEqual(attributes['username'], 'ellen')