GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
test_query.TestQuery Class Reference
Inheritance diagram for test_query.TestQuery:

Public Member Functions

 test_create (self)
 
 test_search_for (self)
 

Detailed Description

Definition at line 7 of file test_query.py.

Member Function Documentation

◆ test_create()

test_query.TestQuery.test_create (   self)

Definition at line 8 of file test_query.py.

8 def test_create(self):
9 query = Query()
10 self.assertIsInstance(query, Query)
11
A Query.
Definition qofquery.cpp:75

◆ test_search_for()

test_query.TestQuery.test_search_for (   self)

Definition at line 12 of file test_query.py.

12 def test_search_for(self):
13 query = Query()
14
15 query.search_for(GNC_ID_INVOICE)
16 self.assertEqual(query.get_search_for(), GNC_ID_INVOICE)
17
18 obj_type = 'gncInvoice'
19 query.search_for(obj_type)
20 self.assertEqual(query.get_search_for(), obj_type)
21

The documentation for this class was generated from the following file: