def METHOD_NAME(self):
    # match both the distribution and platform class
    with patch('ansible.module_utils.common.sys_info.get_distribution', return_value="Bar"):
        assert get_platform_subclass(self.LinuxTest) is self.Bar