'The L{keys.Key.size} method returns the size of key object in bits.'

def test_size(self):

    self.assertEqual(keys.Key(self.rsaObj).size(), 768)
    self.assertEqual(keys.Key(self.dsaObj).size(), 1024)
    self.assertEqual(keys.Key(self.ecObj).size(), 256)
    self.assertEqual(keys.Key(self.ecObj384).size(), 384)
    self.assertEqual(keys.Key(self.ecObj521).size(), 521)
