def test_rg16_files_identified(self): """ Ensure the rg16 files are correctly labeled as such. """ for fcnt_file in FCNT_FILES: self.assertTrue(rc._is_rg16(fcnt_file)) with open(fcnt_file, 'rb') as fi: self.assertTrue(rc._is_rg16(fi))
def test_empty_buffer(self): """ Ensure an empty buffer returns false. """ buff = io.BytesIO() self.assertFalse(rc._is_rg16(buff))
def test_empty_buffer(self): """ Ensure an empty buffer returns false. """ buff = io.BytesIO() self.assertFalse(_is_rg16(buff))
def test_rg16_files_identified(self): """ Ensure the rg16 files are correctly labeled as such. """ for fcnt_file in FCNT_FILES: self.assertTrue(_is_rg16(fcnt_file))