Ejemplo n.º 1
0
    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))
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
    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))
Ejemplo n.º 4
0
    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)