def test_file_name_fields(self):
    fn = 'sample_{date}_{time}_exp={exp}_{frames}_frames'
    out = self.cam._process_file_name(fn, datetime(2020, 6, 20, 13, 40), 0, 100, 10, (227, 300, 400))
    target = 'sample_2020-06-20_13:40:00_exp=4000_227_frames.hdr'
    self.assertEqual(out, target)
def test_file_name_fields(self):
    fn = 'sample_{date}_{time}_exp={exp}_{frames}_frames'
    out = self.cam._process_file_name(fn, datetime(2020, 6, 20, 13, 40), 0, 100, 10, (227, 300, 400))
    target = 'sample_2020-06-20_13:40:00_exp=4000_227_frames.hdr'
    self.assertEqual(out, target)