示例#1
0
 def test_select_all(self, mock_suites):
     assert set(resolve_casespecs(mock_suites, [''])) == set([('a', '1'),
                                                              ('a', '2'),
                                                              ('b', '3')])
示例#2
0
 def test_long_specifier(self, mock_suites):
     with pytest.raises(AbortError):
         resolve_casespecs(mock_suites, ['a/1/huh'])
示例#3
0
 def test_unknown_case(self, mock_suites):
     with pytest.raises(AbortError):
         resolve_casespecs(mock_suites, ['b/4'])
示例#4
0
 def test_duplicates_removed(self, mock_suites):
     assert resolve_casespecs(mock_suites, ['a/2', 'a']) == [('a', '2'),
                                                             ('a', '1')]
示例#5
0
 def test_select_case(self, mock_suites):
     assert resolve_casespecs(mock_suites, ['a/1']) == [('a', '1')]
示例#6
0
 def test_collect_order_preserved(self, mock_suites):
     assert resolve_casespecs(mock_suites, ['b', 'a']) == [('b', '3'),
                                                           ('a', '1'),
                                                           ('a', '2')]