예제 #1
0
 def test_products(self):
     pi = ProjectInfo(prj_path=self.prj_path)
     self.assertGreaterEqual(len(pi.products), 0)
예제 #2
0
 def test_modified(self):
     pi = ProjectInfo(prj_path=self.prj_path)
     mod = pi.modified
     self.assertGreater(mod, datetime(1970, 1, 1))
     pi.updated()
     self.assertTrue(mod != pi.modified)
예제 #3
0
 def test_raws(self):
     pi = ProjectInfo(prj_path=self.prj_path)
     self.assertGreaterEqual(len(pi.raws), 0)
예제 #4
0
 def test_created(self):
     pi = ProjectInfo(prj_path=self.prj_path)
     self.assertGreater(pi.created, datetime(1970, 1, 1))
예제 #5
0
 def test_version(self):
     pi = ProjectInfo(prj_path=self.prj_path)
     self.assertEqual(len(pi.version.split(".")), 3)
예제 #6
0
 def test_name(self):
     pi = ProjectInfo(prj_path=self.prj_path)
     self.assertGreater(len(pi.name), 0)
예제 #7
0
 def test_path(self):
     pi = ProjectInfo(prj_path=self.prj_path)
     self.assertTrue(pi.path.exists())
예제 #8
0
 def test__init__(self):
     _ = ProjectInfo(prj_path=self.prj_path)