def METHOD_NAME(self):
    ts = Touchstone("./tests/data/valid.s1p")
    ts.load()
    self.assertEqual(str(ts.opts), "# HZ S RI R 50")
    self.assertEqual(len(ts.s11), 1010)
    self.assertEqual(len(ts.s21), 0)
    self.assertEqual(ts.r, 50)
    ts = Touchstone("./tests/data/valid.s2p")
    ts.load()
    ts.gen_interpolation()
    self.assertEqual(str(ts.opts), "# HZ S RI R 50")
    self.assertEqual(len(ts.s11), 1020)
    self.assertEqual(len(ts.s21), 1020)
    self.assertEqual(len(ts.s12), 1020)
    self.assertEqual(len(ts.s22), 1020)
    self.assertIn("! Vector Network Analyzer VNA R2", ts.comments)
    self.assertEqual(ts.min_freq(), 500000)
    self.assertEqual(ts.max_freq(), 900000000)
    self.assertEqual(ts.s_freq("11", 1),
                     Datapoint(1, -3.33238E-001, 1.80018E-004))
    self.assertEqual(ts.s_freq("11", 750000),
                     Datapoint(750000, -0.3331754099382822,
                               0.00032433255669243524))
    ts = Touchstone("./tests/data/ma.s2p")
    ts.load()
    self.assertEqual(str(ts.opts), "# MHZ S MA R 50")
    ts = Touchstone("./tests/data/db.s2p")
    ts.load()
    self.assertEqual(str(ts.opts), "# HZ S DB R 50")
    ts = Touchstone("./tests/data/broken_pair.s2p")
    with self.assertLogs(level=logging.ERROR) as cm:
        ts.load()
    self.assertRegex(cm.output[0], "Data values aren't pairs")
    ts = Touchstone("./tests/data/missing_pair.s2p")
    with self.assertLogs(level=logging.ERROR) as cm:
        ts.load()
    self.assertRegex(cm.output[0], "Inconsistent number")
    ts = Touchstone("./tests/data/nonexistent.s2p")
    with self.assertLogs(level=logging.ERROR) as cm:
        ts.load()
    self.assertRegex(cm.output[0], "No such file or directory")