Skip to content

Commit

Permalink
add test for new only_text option
Browse files Browse the repository at this point in the history
  • Loading branch information
whitews committed Jan 27, 2022
1 parent e83cafa commit f92c0a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flowio/tests/flowdata_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ def test_event_count(self):
def test_get_text(self):
self.assertEqual(self.flow_data.text['cyt'], 'FACScan')

def test_load_only_text(self):
flow_data = FlowData('examples/fcs_files/3FITC_4PE_004.fcs', only_text=True)

self.assertIsNone(flow_data.events)
self.assertRaises(AttributeError, flow_data.write_fcs, 'delete_this_file.fcs')

@staticmethod
def test_load_fcs_from_memory():
with open('examples/fcs_files/3FITC_4PE_004.fcs', 'rb') as f:
Expand Down

0 comments on commit f92c0a0

Please sign in to comment.