예제 #1
0
    def test_success_get_name_when_running_only_present(self):
        running = self._get_element('vr', 'Interface', 'Interface text')

        block = Block(running, None)
        self.assertEqual('vr', block.get_name())
예제 #2
0
    def test_success_get_name_when_candidate_only_present(self):
        candidate = self._get_element('vr', 'Interface', 'Interface new')

        block = Block(None, candidate)
        self.assertEqual('vr', block.get_name())
예제 #3
0
    def test_success_get_name_when_running_and_candidate_present(self):
        running = self._get_element('vr', 'Interface', 'Interface text')
        candidate = self._get_element('vr', 'Interface', 'Interface new')

        block = Block(running, candidate)
        self.assertEqual('vr', block.get_name())