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))
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))