def assert_data_values(self, granules, dataset_definition_file):
        """
        Verify granules match the granules defined in the definition file
        """
        rs_file = self._get_source_data_file(dataset_definition_file)
        rs = ResultSet(rs_file)

        self.assertTrue(rs.verify(granules), msg="Failed data validation.  See log for details")
Example #2
0
    def assert_data_values(self, granules, dataset_definition_file):
        """
        Verify granules match the granules defined in the definition file
        """
        rs_file = self._get_source_data_file(dataset_definition_file)
        rs = ResultSet(rs_file)

        self.assertTrue(rs.verify(granules),
                        msg="Failed data validation.  See log for details")
Example #3
0
    def test_simple_set(self):
        rs = ResultSet(self._get_result_set_file("result_set_file.yml"))

        granules = self.create_test_granules(True)
        self.assertEqual(len(granules), 2)
        self.assertTrue(rs.verify(granules))
    def test_simple_set(self):
        rs = ResultSet(self._get_result_set_file("result_set_file.yml"))

        granules = self.create_test_granules(True)
        self.assertEqual(len(granules), 2)
        self.assertTrue(rs.verify(granules))