def test_agent_id_file(self): """Testing function agent_id_file.""" # Test filename = files._File(self.config) expected = filename.agent_id(self.prefix) result = files.agent_id_file(self.prefix, self.config) self.assertEqual(result, expected)
def test_lock_file(self): """Testing function lock_file.""" # Test filename = files._File(self.config) expected = filename.lock(self.prefix) result = files.lock_file(self.prefix, self.config) self.assertEqual(result, expected)
def test_agent_id(self): """Testing function agent_id.""" filename = files._File(self.config) result = filename.agent_id(self.prefix) self.assertTrue(os.path.isdir(os.path.dirname(result)))
def test_lock(self): """Testing function lock.""" # Test filename = files._File(self.config) result = filename.lock(self.prefix) self.assertTrue(os.path.isdir(os.path.dirname(result)))