Browse Source

add coverage for when there isn't a loader..

main
John-Mark Gurney 4 years ago
parent
commit
09256d9c93
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      casimport/__init__.py

+ 4
- 0
casimport/__init__.py View File

@@ -176,6 +176,10 @@ class Test(unittest.TestCase):
# That a CASFinder
f = CASFinder()

# make sure that we can't import anything at first
with self.assertRaises(ImportError):
import cas.v1_f_2398472398

# when registering the fixtures directory
f.register(FileDirCAS(self.fixtures))



Loading…
Cancel
Save