Share and Money Management 0.18devel
|
Test basic functionality with all objects from smm.objects. More...
Public Attributes | |
store | |
Private Member Functions | |
def | _checkEquality (self, first, second) |
Check equality of two objects. More... | |
Test basic functionality with all objects from smm.objects.
Tests creation, searching, adding and removing of all object classes
|
private |
Check equality of two objects.
The function compares the id
attribute as well as identity of both objects. The identity is getting using id()
.
self | The object instance itself |
first | First object |
second | Second object |
Referenced by tests.test_objects.TestObjects.test_DailyQuote_get(), tests.test_objects.TestObjects.test_Transaction_get(), and tests.test_objects.TestObjects.test_Watch_get().
def tests.test_objects.TestObjects.setUp | ( | self | ) |
Creates and initialise a (temporary) in-memory database.
References smm.db_setup.create_structure(), smm.database.init_storm(), and smm.db_setup.load_initial_data().
def tests.test_objects.TestObjects.test_Config_get | ( | self | ) |
Test the smm.objects.Config.get() command.
def tests.test_objects.TestObjects.test_Config_objects | ( | self | ) |
Tests creating, searching and destroying smm.objects.Config objects.
References tests.test_gui.TestGui.store, and tests.test_objects.TestObjects.store.
def tests.test_objects.TestObjects.test_Currency_get | ( | self | ) |
Test the smm.objects.Currency.get() command.
def tests.test_objects.TestObjects.test_Currency_objects | ( | self | ) |
Tests creating, searching and destroying smm.objects.Currency objects.
References tests.test_gui.TestGui.store, and tests.test_objects.TestObjects.store.
def tests.test_objects.TestObjects.test_DailyQuote_get | ( | self | ) |
Test the smm.objects.DailyQuote.get() command.
References tests.test_objects.TestObjects._checkEquality().
def tests.test_objects.TestObjects.test_DailyQuote_getLast | ( | self | ) |
Tests the smm.Objects.DailyQuote.getLast() command.
def tests.test_objects.TestObjects.test_DailyQuote_objects | ( | self | ) |
Tests creating, searching and destroying smm.objects.DailyQuote objects.
References tests.test_gui.TestGui.store, and tests.test_objects.TestObjects.store.
def tests.test_objects.TestObjects.test_Exchange_get | ( | self | ) |
Test the smm.objects.Exchange.get() command.
def tests.test_objects.TestObjects.test_Exchange_objects | ( | self | ) |
Tests creating, searching and destroying smm.objects.Exchange objects.
References tests.test_gui.TestGui.store, and tests.test_objects.TestObjects.store.
def tests.test_objects.TestObjects.test_Position_get | ( | self | ) |
Test the smm.objects.Position.get() command.
def tests.test_objects.TestObjects.test_Position_getAvgBuy | ( | self | ) |
Tests the smm.objects.Position.getAvgBuy() command.
def tests.test_objects.TestObjects.test_Position_getLastQuote | ( | self | ) |
Tests the smm.Position.getLastQuote() command.
def tests.test_objects.TestObjects.test_Position_getPerf | ( | self | ) |
Tests the smm.objects.Position.getPerf() command.
Additionally will be tested:
def tests.test_objects.TestObjects.test_Position_getPerf2 | ( | self | ) |
Tests the smm.objects.Position.getPerf() command.
def tests.test_objects.TestObjects.test_Position_objects | ( | self | ) |
Tests creating smm.objects.Position objects.
References gui.log.flush(), tests.test_gui.TestGui.store, and tests.test_objects.TestObjects.store.
def tests.test_objects.TestObjects.test_Position_split | ( | self | ) |
Test the smm.objects.Position.split() command.
def tests.test_objects.TestObjects.test_Position_swap | ( | self | ) |
Test the smm.objects.Position.swap() command.
def tests.test_objects.TestObjects.test_Position_worthless | ( | self | ) |
Test the smm.objects.Position.worthless() command.
def tests.test_objects.TestObjects.test_Share_get | ( | self | ) |
Test the smm.objects.Share.get() command.
def tests.test_objects.TestObjects.test_Share_objects | ( | self | ) |
Tests creating, searching and destroying smm.objects.Share objects.
References tests.test_gui.TestGui.store, and tests.test_objects.TestObjects.store.
def tests.test_objects.TestObjects.test_SMMBaseObject_AttributeConversion_Decimal | ( | self | ) |
Tests the automatic conversion of attributes to Decimal values.
This functionality is used in all classes derivated from smm.objects.SMMBaseObject
def tests.test_objects.TestObjects.test_SMMBaseObject_remove | ( | self | ) |
Test removing own object from database.
def tests.test_objects.TestObjects.test_SMMBaseObject_setAttrs | ( | self | ) |
Tests setting / update of attributes.
This functionality is used in all classes derivated from smm.objects.SMMBaseObject
def tests.test_objects.TestObjects.test_Transaction_get | ( | self | ) |
Test the smm.objects.Transaction.get() command.
References tests.test_objects.TestObjects._checkEquality().
def tests.test_objects.TestObjects.test_Transaction_getVolume | ( | self | ) |
Test the smm.objects.Transaction.getVolume() command.
Additionally will be tested:
def tests.test_objects.TestObjects.test_Transaction_objects | ( | self | ) |
Tests creating, searching and destroying smm.objects.Transaction objects.
References tests.test_gui.TestGui.store, and tests.test_objects.TestObjects.store.
def tests.test_objects.TestObjects.test_Watch_get | ( | self | ) |
Test the smm.objects.Watch.get() command.
References tests.test_objects.TestObjects._checkEquality().
def tests.test_objects.TestObjects.test_Watch_objects | ( | self | ) |
Tests creating smm.objects.Watch objects.
References tests.test_gui.TestGui.store, and tests.test_objects.TestObjects.store.
tests.test_objects.TestObjects.store |
Referenced by tests.test_objects.TestObjects.test_Config_objects(), tests.test_objects.TestObjects.test_Currency_objects(), tests.test_objects.TestObjects.test_DailyQuote_objects(), tests.test_objects.TestObjects.test_Exchange_objects(), tests.test_objects.TestObjects.test_Position_objects(), tests.test_objects.TestObjects.test_Share_objects(), tests.test_objects.TestObjects.test_Transaction_objects(), and tests.test_objects.TestObjects.test_Watch_objects().