コード例 #1
0
ファイル: test_agate.py プロジェクト: ritviksahajpal/agate
    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()
コード例 #2
0
ファイル: test_agate.py プロジェクト: nsonnad/agate
    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()
コード例 #3
0
ファイル: test_journalism.py プロジェクト: wpdavis/agate
 def test_agate(self):
     with self.assertRaises(NotImplementedError):
         agate.save()