class TestHdfsDatasetUtils(TestCase): def setUp(self): self.hdfs = HdfsDatasetUtils('/path/to/data') def test_dataset_dir(self): self.assertEqual(self.hdfs.dataset_dir('nonya', 'hourly'), '/path/to/data/nonya/hourly') self.assertEqual(self.hdfs.dataset_dir('boogers', 'yearly'), '/path/to/data/boogers/yearly')
def setUp(self): self.hdfs = HdfsDatasetUtils('/path/to/data')