3 f- @ s& d Z ddlmZ ddlZddlmZ ddlmZ ddlZddlm Z ddl mZ G dd d ejZ G d d dejZG dd d ejZejZG dd dejZG dd dejZG dd dejZG dd dejZG dd dejZG dd dejZG dd dejZedkr"ejddd dS ) a Test query, coverage 91%). Non-gui tests for Query, SectionName, ModuleName, and HelpSource use dummy versions that extract the non-gui methods and add other needed attributes. GUI tests create an instance of each class and simulate entries and button clicks. Subclass tests only target the new code in the subclass definition. The appearance of the widgets is checked by the Query and HelpSource htests. These are run by running query.py. )queryN)requires)Tk)mock)Varc @ sF e Zd ZdZG dd dZdd Zdd Zdd Zd d Zdd Z dS ) QueryTestzTest Query base class.c @ sF e Zd ZejjZejjZejjZe Z i Z dd Zdd Zdd Z dS )zQueryTest.Dummy_Queryc C s&