예제 #1
0
    def test_get_file_data(self):
        """
        Test loading of file data for a file.
        """

        result, _ = FileMetaDataModularInput.get_file_data("..")
        self.assertEquals(result['is_directory'], 1)
예제 #2
0
    def test_get_file_data(self):
        """
        Test loading of file data for a file.
        """

        result, _ = FileMetaDataModularInput.get_file_data("..")
        self.assertEquals(result['is_directory'], 1)
예제 #3
0
    def test_get_file_data_file_count_on_root(self):
        """
        Ensure that the input correctly handles the case where the directory requested does exist.
        """

        result, _ = FileMetaDataModularInput.get_file_data("../src/bin")
        self.assertGreaterEqual(result['file_count'], 1)
        self.assertGreaterEqual(result['directory_count'], 1)
예제 #4
0
    def test_get_file_data_file_count_on_root(self):
        """
        Ensure that the input correctly handles the case where the directory requested does exist.
        """

        result, _ = FileMetaDataModularInput.get_file_data("../src/bin")
        self.assertGreaterEqual(result['file_count'], 1)
        self.assertGreaterEqual(result['directory_count'], 1)