File size: 530 Bytes
8097001
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
import unittest


class Pm4pyImportPackageTest(unittest.TestCase):
    def test_importeverything(self):
        # to avoid static method warnings in tests,
        # that by construction of the unittest package have to be expressed in such way
        self.dummy_variable = "dummy_value"
        import pm4py
        log = pm4py.objects.log.importer.xes.importer.apply(
            os.path.join("input_data", "running-example.xes"))
        self.assertEqual(len(log), 6)


if __name__ == "__main__":
    unittest.main()