Exemplo n.º 1
0
 def test_create_school(self, mock_create_alias):
     update_ipeds.create_school('999998', {'alias': 'xyzz', 'city': 'Oz'})
     self.assertTrue(mock_create_alias.call_count == 1)
     self.assertTrue(School.objects.get(school_id=999998))
Exemplo n.º 2
0
 def test_create_school(self, mock_create_alias):
     update_ipeds.create_school('999998', {'alias': 'xyzz', 'city': 'Oz'})
     self.assertTrue(mock_create_alias.call_count == 1)
     self.assertTrue(School.objects.get(school_id=999998))