def test_agate(self): if six.PY2: self.assertIs(agate.reader, agate.csv_py2.reader) self.assertIs(agate.writer, agate.csv_py2.writer) self.assertIs(agate.DictReader, agate.csv_py2.DictReader) self.assertIs(agate.DictWriter, agate.csv_py2.DictWriter) else: self.assertIs(agate.reader, agate.csv_py3.reader) self.assertIs(agate.writer, agate.csv_py3.writer) self.assertIs(agate.DictReader, agate.csv_py3.DictReader) self.assertIs(agate.DictWriter, agate.csv_py3.DictWriter) with self.assertRaises(NotImplementedError): agate.save()
def test_agate(self): with self.assertRaises(NotImplementedError): agate.save()