def test_gtid_set_cardinality(self): # Determine the number og GTIDs in a GTID set. gtid_set = 'cfb4dd08-588e-11e4-89aa-606720440b68:7,' self.assertEqual(1, gtid_set_cardinality(gtid_set)) gtid_set = 'da1f90b1-588e-11e4-89aa-606720440b68:5-8' self.assertEqual(4, gtid_set_cardinality(gtid_set)) gtid_set = ('cfb4dd08-588e-11e4-89aa-606720440b68:7,' 'D4F8EB6E-588e-11E4-89AA-606720440b68:1-4:6:8:10-11,' 'da1f90b1-588e-11e4-89aa-606720440b68:5-8') self.assertEqual(13, gtid_set_cardinality(gtid_set))