diff options
| author | Armin Rigo <arigo@tunes.org> | 2016-01-01 11:20:45 +0100 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2016-01-01 11:20:45 +0100 |
| commit | fc90431d8dc8df0af1dd0367eeee8bb76c36168f (patch) | |
| tree | 6256421155a892e24c704a5108b236b6908e42cf /testing/embedding/test_basic.py | |
| parent | 32613975eab162905247ef21eda03a387eddee97 (diff) | |
| download | cffi-fc90431d8dc8df0af1dd0367eeee8bb76c36168f.tar.gz | |
A test with two modules.
Diffstat (limited to 'testing/embedding/test_basic.py')
| -rw-r--r-- | testing/embedding/test_basic.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/embedding/test_basic.py b/testing/embedding/test_basic.py index 0904164..56401bd 100644 --- a/testing/embedding/test_basic.py +++ b/testing/embedding/test_basic.py @@ -56,3 +56,14 @@ class TestBasic(EmbeddingTests): "adding 40 and 2\n" "adding 100 and -5\n" "got: 42 95\n") + + def test_two_modules(self): + self.prepare_module('add1') + self.prepare_module('add2') + self.compile('add2-test', ['_add1_cffi', '_add2_cffi']) + output = self.execute('add2-test') + assert output == ("preparing\n" + "adding 40 and 2\n" + "preparing ADD2\n" + "adding 100 and -5 and -20\n" + "got: 42 75\n") |
