]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/flad/test/test5.py
Import m_lib/flad
[m_lib.git] / m_lib / flad / test / test5.py
diff --git a/m_lib/flad/test/test5.py b/m_lib/flad/test/test5.py
new file mode 100755 (executable)
index 0000000..45b70aa
--- /dev/null
@@ -0,0 +1,19 @@
+#! /usr/bin/env python
+
+
+from m_lib.flad import fladc
+
+
+def test():
+   print "Test:",
+
+   try: # Note! This must raise fladc.error - too many records in the file
+      conf = fladc.load_file("test.txt")
+   except fladc.error:
+      print "Ok"
+   else:
+      print "Error!"
+
+
+if __name__ == "__main__":
+   test()