def test_permutate(self): sgnt = Signature('1001011') self.assertTrue(sgnt.count() == sgnt.permutate( SignaturePermutationWithTrie(7)).count())
def test_permutate(self): sgnt = Signature('1001011') self.assertTrue(sgnt.count()==sgnt.permutate(SignaturePermutationWithTrie(7)).count())
def test_initialization(self): sgnt = Signature('1001011') self.assertEqual(sgnt.count(), 4) sgnt = Signature() self.assertEqual(sgnt.count(), 0)