'Tests the json from and to methods on the given tab'

def check_tab_json_methods(self, tab):

    serialized_tab = tab.to_json()
    deserialized_tab = tab.from_json(serialized_tab)
    self.assertEquals(serialized_tab, deserialized_tab)
