def test_dedup4(self): a = Babe().pull(stream=StringIO(self.s), format="csv") a = a.dedup(fields=['value']) self.assertEquals(a.to_string(), self.s4)
def test_dedup2(self): a = Babe().pull(stream=StringIO(self.s2), format="csv") a = a.dedup() self.assertEquals(a.to_string(), self.s3)
def test_dedup4(self): a = Babe().pull(stream=StringIO(self.s), format="csv") a = a.dedup(fields=['value']) buf = StringIO() a.push(stream=buf, format="csv") self.assertEquals(buf.getvalue(), self.s4)
def test_dedup2(self): a = Babe().pull(stream=StringIO(self.s2), format="csv") a = a.dedup() buf = StringIO() a.push(stream=buf, format="csv") self.assertEquals(buf.getvalue(), self.s3)
def test_dedup4(self): a = Babe().pull(stream=StringIO(self.s), format="csv") a = a.dedup(fields=['value']) buf = StringIO() a.push(stream=buf,format="csv") self.assertEquals(buf.getvalue(), self.s4)
def test_dedup2(self): a = Babe().pull(stream=StringIO(self.s2), format="csv") a = a.dedup() buf = StringIO() a.push(stream=buf,format="csv") self.assertEquals(buf.getvalue(), self.s3)