Exemplo n.º 1
0
 def test_find_original_tag_str_no_ljmmm(self):
     tag_components = [NO_LJMMM_ORIG_TAG, PRE_POST_ORIG_TAG]
     original_tag_str = lj_scribe.find_original_tag_str(tag_components)
     self.assertEqual(
         original_tag_str,
         "@registers:TEST,PRE_#(100:2:3)_POST"
     )
Exemplo n.º 2
0
 def test_find_original_tag_str(self):
     tag_components = [PRE_POST_ORIG_TAG, ANOTHER_ORIG_TAG, ORIG_TAG_NO_GAP]
     original_tag_str = lj_scribe.find_original_tag_str(tag_components)
     self.assertEqual(
         original_tag_str,
         "@registers:PRE_#(100:2:3)_POST,ANOTHER_#(200:2:3),YAC#(200:2)"
     )
Exemplo n.º 3
0
 def test_find_original_tag_str_device_type(self):
     pre_post_orig_tag = copy.deepcopy(PRE_POST_ORIG_TAG)
     another_orig_tag = copy.deepcopy(ANOTHER_ORIG_TAG)
     orig_tag_no_gap = copy.deepcopy(ORIG_TAG_NO_GAP)
     pre_post_orig_tag.device_types.append('T7')
     another_orig_tag.device_types.append('T7')
     orig_tag_no_gap.device_types.append('T7')
     tag_components = [pre_post_orig_tag, another_orig_tag, orig_tag_no_gap]
     original_tag_str = lj_scribe.find_original_tag_str(tag_components)
     self.assertEqual(
         original_tag_str,
         "@registers[T7]:PRE_#(100:2:3)_POST,ANOTHER_#(200:2:3),YAC#(200:2)"
     )