Example #1
0
 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))
Example #2
0
 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))
Example #3
0
 def test_empty_buffer(self):
     """
     Ensure an empty buffer returns false.
     """
     buff = io.BytesIO()
     self.assertFalse(rc._is_rg16(buff))
Example #4
0
 def test_empty_buffer(self):
     """
     Ensure an empty buffer returns false.
     """
     buff = io.BytesIO()
     self.assertFalse(_is_rg16(buff))
Example #5
0
 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))