def test_given_vcs_object_can_return_filecontents_without_epics_version_mentioned_then_return_empty_list(self): FakeVcs = MagicMock() FakeVcs.cat.return_value = 'BLGUI = $(SUPPORT)/BLGui/3-5' module_epics = dls_release.get_module_epics_version(FakeVcs) self.assertFalse(len(module_epics))
def test_given_vcs_object_can_return_filecontents_with_epics_version_mentioned_then_return_epics_version(self): expected_epics = 'R3.14.12.3' module_epics = dls_release.get_module_epics_version(FakeVcs()) self.assertEqual(module_epics, expected_epics)
def test_given_vcs_object_can_return_filecontents_without_epics_version_mentioned_then_return_empty_list( self): FakeVcs = MagicMock() FakeVcs.cat.return_value = 'BLGUI = $(SUPPORT)/BLGui/3-5' module_epics = dls_release.get_module_epics_version(FakeVcs) self.assertFalse(len(module_epics))
def test_given_vcs_object_can_return_filecontents_with_epics_version_mentioned_then_return_epics_version( self): expected_epics = 'R3.14.12.3' module_epics = dls_release.get_module_epics_version(FakeVcs()) self.assertEqual(module_epics, expected_epics)