Diff of /Tests/test_pyutils.any [000000] .. [38ba34]

Switch to side-by-side view

--- a
+++ b/Tests/test_pyutils.any
@@ -0,0 +1,26 @@
+//pytest_markers=["slow"]
+#define ANYBODY_PATH_OUTPUT "."
+#include "libdef.any"
+
+
+Main = 
+{
+   #include "<ANYBODY_PATH_MODELUTILS>/Python/Utils.any"
+   
+   AnyInt os_path_file_exists1 = PyUtils.os.path.exists("non existing file");
+   AnyInt os_path_file_exists2 = PyUtils.os.path.exists("test_pyutils.any");
+   AnyInt test_file_exists1 = expect(not(os_path_file_exists1));
+   AnyInt test_file_exists2 = expect(os_path_file_exists2);
+    
+   AnyString current_folder_name = PyUtils.os.path.basename(PyUtils.os.path.dirname(PyUtils.get_current_file()));
+   AnyInt test_current_folder = expect(eqfun(current_folder_name, "Tests"));
+  
+   AnyString os_path_abspath = PyUtils.os.path.abspath("test_pyutils.any");
+   AnyString os_path_basename = PyUtils.os.path.basename(os_path_abspath);
+   
+  AnyInt test_abspath_basename = expect(eqfun(os_path_basename, "test_pyutils.any"));
+    
+   AnyOperationDummy RunTest = {};
+
+
+};