Send the user a message when an asset restriction is hit
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from django.test import TestCase
|
||||
|
||||
from core.trading.assetfilter import get_allowed
|
||||
from core.models import AssetGroup, User
|
||||
from core.trading.assetfilter import get_allowed
|
||||
|
||||
|
||||
class AssetfilterTestCase(TestCase):
|
||||
def setUp(self):
|
||||
@@ -15,7 +16,6 @@ class AssetfilterTestCase(TestCase):
|
||||
description="Test group",
|
||||
)
|
||||
|
||||
|
||||
def test_get_allowed(self):
|
||||
"""
|
||||
Test that the asset filter works.
|
||||
@@ -25,4 +25,4 @@ class AssetfilterTestCase(TestCase):
|
||||
self.assertFalse(get_allowed(self.group, "EUR_GBP", "sell"))
|
||||
|
||||
# Default true
|
||||
self.assertTrue(get_allowed(self.group, "nonexistent", "sell"))
|
||||
self.assertTrue(get_allowed(self.group, "nonexistent", "sell"))
|
||||
|
||||
Reference in New Issue
Block a user