Пример #1
0
 def test_returns_empty_tail_when_no_options_there(self):
     self.assertEqual(
         (["a", "b"], []),
         parse_args.separate_tail_option_candidates(["a", "b"]),
     )
Пример #2
0
 def test_returns_empty_head_when_options_there_only(self):
     self.assertEqual(
         ([], ["c=d", "e=f"]),
         parse_args.separate_tail_option_candidates(["c=d", "e=f"]),
     )
Пример #3
0
 def test_separate_when_both_parts_there(self):
     self.assertEqual(
         (["a", "b"], ["c=d", "e=f"]),
         parse_args.separate_tail_option_candidates(
             ["a", "b", "c=d", "e=f"]),
     )
Пример #4
0
 def test_returns_empty_tail_when_no_options_there(self):
     self.assertEqual(
         (["a", "b"], []),
         parse_args.separate_tail_option_candidates(["a", "b"])
     )
Пример #5
0
 def test_returns_empty_head_when_options_there_only(self):
     self.assertEqual(
         ([], ["c=d", "e=f"]),
         parse_args.separate_tail_option_candidates(["c=d", "e=f"])
     )
Пример #6
0
 def test_separate_when_both_parts_there(self):
     self.assertEqual(
         (["a", "b"], ["c=d", "e=f"]),
         parse_args.separate_tail_option_candidates(["a", "b", "c=d", "e=f"])
     )