def test_obj_all_subject_names_with_one_present(self): """TASRClientSV.all_subject_names() - as expected""" self.obj_register_subject_skeleton() with httmock.HTTMock(self.route_to_testapp): client = tasr.client.TASRClientSV(self.host, self.port) subject_names = client.all_subject_names() self.assertListEqual(subject_names, [self.event_type], "unexpected groups: %s" % subject_names)
def test_obj_all_subject_names_with_none_present(self): """TASRClientSV.all_subject_names() - check an empty list works""" with httmock.HTTMock(self.route_to_testapp): client = tasr.client.TASRClientSV(self.host, self.port) subject_names = client.all_subject_names() self.assertEqual(0, len(subject_names), "expected no groups")