def testEndswith(self):
     a = BitArray('0xdeadbeef')
     self.assertTrue(a.endswith('0xdead'))