예제 #1
0
 def test_is_valid_source(self):
     assert is_valid_source('foo',
                            fulls=['foo', 'bar'],
                            prefixes=['baz', 'cruux'])
     assert not is_valid_source(
         'foob', fulls=['foo', 'bar'], prefixes=['baz', 'cruux'])
     assert is_valid_source('foobaz',
                            fulls=['foo', 'bar'],
                            prefixes=['baz', 'cruux'])
     assert not is_valid_source(
         'ba', fulls=['foo', 'bar'], prefixes=['baz', 'cruux'])
예제 #2
0
 def test_is_valid_source(self):
     assert is_valid_source('foo',
                            fulls=['foo', 'bar'],
                            prefixes=['baz', 'cruux'])
     assert not is_valid_source('foob',
                                fulls=['foo', 'bar'],
                                prefixes=['baz', 'cruux'])
     assert is_valid_source('foobaz',
                            fulls=['foo', 'bar'],
                            prefixes=['baz', 'cruux'])
     assert not is_valid_source('ba',
                                fulls=['foo', 'bar'],
                                prefixes=['baz', 'cruux'])