Exemplo n.º 1
0
def test_library_doesnt_exist():
    self = create_autospec(Arctic)
    self.get_library.side_effect = LibraryNotFoundException('not found')
    assert not Arctic.library_exists(self, 'mylib')
Exemplo n.º 2
0
def test_library_doesnt_exist():
    self = create_autospec(Arctic)
    self.get_library.side_effect = LibraryNotFoundException('not found')
    assert not Arctic.library_exists(self, 'mylib')
Exemplo n.º 3
0
def test_library_exists():
    self = create_autospec(Arctic)
    self.get_library.return_value = 'not an exception'
    assert Arctic.library_exists(self, 'mylib')
Exemplo n.º 4
0
def test_library_exists():
    self = create_autospec(Arctic)
    self.get_library.return_value = 'not an exception'
    assert Arctic.library_exists(self, 'mylib')