From 05b34c138971554a907f479fd8d54d6333b0a58d Mon Sep 17 00:00:00 2001 From: andela-ydaniju Date: Thu, 21 Apr 2016 13:51:12 +0100 Subject: [PATCH 1/2] create fellows model with tests --- .coverage | 2 +- .travis.yml | 2 +- lib/fellow.py | 22 ++++++++++++++++ lib/fellow.pyc | Bin 0 -> 1482 bytes lib/person.pyc | Bin 917 -> 917 bytes tests/__init__.pyc | Bin 160 -> 160 bytes tests/context.py | 3 ++- tests/context.pyc | Bin 280 -> 390 bytes tests/fellow_test.py | 24 ++++++++++++++++++ tests/fellow_test.pyc | Bin 0 -> 1736 bytes tests/{person_unit_test.py => person_test.py} | 0 tests/person_test.pyc | Bin 0 -> 1736 bytes tests/person_unit_test.pyc | Bin 1766 -> 1766 bytes 13 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 lib/fellow.pyc create mode 100644 tests/fellow_test.py create mode 100644 tests/fellow_test.pyc rename tests/{person_unit_test.py => person_test.py} (100%) create mode 100644 tests/person_test.pyc diff --git a/.coverage b/.coverage index 8dc7b78..13b07c8 100644 --- a/.coverage +++ b/.coverage @@ -1 +1 @@ -!coverage.py: This is a private format, don't read it directly!{"lines": {"/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/pkg_resources/extern/__init__.py": [27, 28, 29], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/multiprocess.py": [224, 225, 226, 227, 231, 233, 234, 235, 238, 223], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/proxy.py": [30, 163, 164, 165, 168, 169, 170, 43, 45, 46, 47, 176, 177, 178, 57, 58, 59, 60, 61, 62, 63, 64, 78, 80, 81, 82, 83, 102, 103, 104, 110, 111, 112, 116, 117, 118], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/staff.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/loader.py": [522, 523, 540, 541, 542, 547, 550, 551, 559, 564, 566, 567, 569, 570, 79, 81, 82, 83, 84, 85, 86, 89, 90, 91, 92, 93, 94, 95, 97, 99, 105, 108, 109, 110, 112, 113, 114, 116, 119, 121, 122, 123, 128, 131, 134, 135, 143, 144, 145, 146, 147, 149, 150, 151, 154, 156, 157, 158, 159, 160, 161, 170, 177, 178, 179, 180, 181, 182, 183, 186, 196, 197, 200, 201, 209, 210, 211, 212, 314, 315, 316, 317, 321, 322, 323, 325, 326, 327, 328, 330, 331, 332, 333, 338, 340, 341, 343, 344, 345, 346, 347, 348, 349, 350, 353, 354, 356, 359, 369, 371, 374, 375, 378, 379, 404, 405, 406, 409, 410, 416, 417, 418, 420, 421, 428, 431, 432, 433, 473, 474, 475, 476, 481, 486, 487, 488, 493, 494], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/__main__.py": [1], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/errorclass.py": [148, 150, 151, 152, 153, 154], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/prof.py": [71, 74, 75, 76, 80, 81, 82, 83, 84, 57], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/__init__.py": [1], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/rednose.py": [384, 129, 130, 387, 133, 390, 385, 139, 140, 141, 144, 153, 154, 155, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 391, 373, 386, 219, 220, 223, 224, 225, 229, 230, 233, 234, 237, 371, 372, 254, 380, 126, 255], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/pyversion.py": [70, 136, 49, 50, 51, 52, 53, 54, 56, 58], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/doctests.py": [192, 193, 194, 195, 188, 189, 190, 191], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/suite.py": [539, 540, 543, 544, 545, 546, 547, 548, 551, 552, 554, 563, 564, 53, 567, 68, 79, 80, 81, 94, 95, 96, 97, 98, 103, 104, 105, 107, 113, 114, 148, 149, 150, 151, 153, 154, 155, 156, 157, 158, 173, 177, 201, 204, 205, 208, 209, 216, 217, 218, 224, 226, 227, 228, 269, 270, 274, 277, 278, 282, 283, 285, 286, 287, 288, 289, 290, 291, 292, 293, 297, 298, 301, 302, 303, 304, 308, 309, 310, 312, 52, 314, 315, 323, 324, 329, 330, 331, 337, 338, 339, 340, 341, 342, 313, 345, 346, 347, 348, 349, 350, 351, 356, 357, 358, 360, 361, 362, 364, 365, 366, 367, 368, 372, 373, 374, 394, 396, 397, 401, 402, 403, 404, 405, 406, 407, 418, 419, 420, 421, 422, 423, 424, 427, 435, 436, 441, 443, 445, 446, 447, 448, 451, 452, 453, 454, 457, 459, 460, 462, 463, 465, 466, 467, 471, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/importer.py": [128, 129, 130, 131, 132, 65, 143, 144, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 32, 161, 165, 166, 167, 40, 41, 42, 44, 45, 47, 30, 54, 59, 62, 53, 160, 66, 67, 68, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, 81, 85, 86, 89, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 110, 111, 116, 117, 118, 119, 63, 126, 127], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/isolate.py": [61, 62], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/person.py": [1, 2, 3, 4, 5, 6, 7, 8, 10, 11], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/__init__.py": [1], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/person_unit_test.py": [1, 2, 4, 6, 7, 8, 10, 11, 12, 14], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/pkg_resources/_vendor/six.py": [185, 187], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/living_space.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/termstyle.py": [43, 44, 62, 63], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/office.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/cover.py": [164, 263, 173, 271, 182, 183], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/xunit.py": [192, 193, 191], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/context.py": [1, 2, 3, 5], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/manager.py": [128, 262, 263, 264, 265, 272, 273, 274, 149, 167, 166, 295, 168, 169, 301, 302, 177, 178, 184, 249, 88, 89, 93, 94, 95, 96, 99, 252, 106, 107, 111, 114, 123, 118, 105, 120, 121, 250, 251, 124, 253, 254], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/skip.py": [57, 59, 60, 61], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/debug.py": [40, 41, 42, 43], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/base.py": [98, 100, 101, 102], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/fellow.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/core.py": [65, 34, 36, 37, 50, 51, 55, 56, 59, 188, 61, 62, 193, 66, 199, 200, 201, 202, 203, 204, 205, 206, 207, 187, 60], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/selector.py": [129, 130, 131, 134, 135, 171, 68, 69, 162, 35, 37, 167, 40, 41, 42, 43, 44, 45, 174, 175, 176, 178, 179, 53, 54, 57, 187, 188, 191, 193, 194, 196, 197, 72, 73, 74, 76, 77, 80, 81, 163, 169, 222, 224, 225, 226, 227, 228, 229, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 116, 117, 118, 119, 120, 121, 122, 123, 170, 126, 127], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/amity.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/deprecated.py": [40, 42, 43, 44], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/util.py": [320, 446, 662, 263, 520, 521, 266, 267, 140, 397, 270, 271, 272, 273, 274, 403, 276, 277, 278, 279, 408, 409, 410, 411, 312, 163, 164, 406, 470, 264, 306, 307, 308, 309, 310, 393, 184, 313, 187, 188, 189, 190, 191, 192, 321, 322, 195, 407, 471, 447, 311, 663, 337, 338, 339, 340, 398, 342, 343, 399, 479, 323, 481, 483, 484, 485, 486, 449, 404, 448, 660, 318, 502, 503, 504, 505, 506, 319, 405], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/testid.py": [137, 138, 142, 143, 144, 145, 148, 149, 150, 151, 154, 155], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/result.py": [38, 39, 40, 41, 43, 44], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/logcapture.py": [34, 38, 39, 40, 41, 44, 178, 179, 193, 194, 195, 196, 198, 199, 76, 204, 77, 78, 207, 80, 209, 86, 217, 79, 222, 208], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/capture.py": [64, 96, 98, 69, 102, 97, 58, 59, 101], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/failuredetail.py": [33, 35, 36], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/case.py": [128, 129, 130, 131, 132, 133, 140, 147, 148, 149, 151, 29, 33, 34, 36, 37, 38, 39, 40, 41, 42, 45, 59, 60, 64, 69, 70, 74, 99, 100, 101, 102, 103, 104]}} \ No newline at end of file +!coverage.py: This is a private format, don't read it directly!{"lines": {"/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/pkg_resources/extern/__init__.py": [27, 28, 29], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/core.py": [65, 34, 36, 37, 50, 51, 55, 56, 59, 188, 61, 62, 193, 66, 199, 200, 201, 202, 203, 204, 205, 206, 207, 187, 60], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/multiprocess.py": [224, 225, 226, 227, 231, 233, 234, 235, 238, 223], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/proxy.py": [30, 163, 164, 165, 168, 169, 170, 43, 45, 46, 47, 176, 177, 178, 57, 58, 59, 60, 61, 62, 63, 64, 78, 80, 81, 82, 83, 102, 103, 104, 110, 111, 112, 116, 117, 118], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/staff.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/loader.py": [522, 523, 540, 541, 542, 547, 550, 551, 559, 564, 566, 567, 569, 570, 79, 81, 82, 83, 84, 85, 86, 89, 90, 91, 92, 93, 94, 95, 97, 99, 105, 108, 109, 110, 112, 113, 114, 116, 119, 121, 122, 123, 128, 131, 134, 135, 143, 144, 145, 146, 147, 149, 150, 151, 154, 156, 157, 158, 159, 160, 161, 170, 177, 178, 179, 180, 181, 182, 183, 186, 196, 197, 200, 201, 209, 210, 211, 212, 314, 315, 316, 317, 321, 322, 323, 325, 326, 327, 328, 330, 331, 332, 333, 338, 340, 341, 343, 344, 345, 346, 347, 348, 349, 350, 353, 354, 356, 359, 369, 371, 374, 375, 378, 379, 404, 405, 406, 409, 410, 416, 417, 418, 420, 421, 428, 431, 432, 433, 473, 474, 475, 476, 481, 486, 487, 488, 493, 494], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/__main__.py": [1], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/errorclass.py": [148, 150, 151, 152, 153, 154], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/prof.py": [71, 74, 75, 76, 80, 81, 82, 83, 84, 57], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/__init__.py": [1], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/rednose.py": [384, 129, 130, 387, 133, 390, 385, 139, 140, 141, 144, 153, 154, 155, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 391, 373, 386, 219, 220, 223, 224, 225, 229, 230, 233, 234, 237, 371, 372, 254, 380, 126, 255], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/pyversion.py": [70, 136, 49, 50, 51, 52, 53, 54, 56, 58], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/doctests.py": [192, 193, 194, 195, 188, 189, 190, 191], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/suite.py": [539, 540, 543, 544, 545, 546, 547, 548, 551, 552, 554, 563, 564, 53, 567, 68, 79, 80, 81, 94, 95, 96, 97, 98, 103, 104, 105, 107, 113, 114, 148, 149, 150, 151, 153, 154, 155, 156, 157, 158, 173, 177, 201, 204, 205, 208, 209, 216, 217, 218, 224, 226, 227, 228, 269, 270, 274, 277, 278, 282, 283, 285, 286, 287, 288, 289, 290, 291, 292, 293, 297, 298, 301, 302, 303, 304, 308, 309, 310, 312, 52, 314, 315, 323, 324, 329, 330, 331, 337, 338, 339, 340, 341, 342, 313, 345, 346, 347, 348, 349, 350, 351, 356, 357, 358, 360, 361, 362, 364, 365, 366, 367, 368, 372, 373, 374, 394, 396, 397, 401, 402, 403, 404, 405, 406, 407, 418, 419, 420, 421, 422, 423, 424, 427, 435, 436, 441, 443, 445, 446, 447, 448, 451, 452, 453, 454, 457, 459, 460, 462, 463, 465, 466, 467, 471, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/importer.py": [128, 129, 130, 131, 132, 65, 143, 144, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 32, 161, 165, 166, 167, 40, 41, 42, 44, 45, 47, 30, 54, 59, 62, 53, 160, 66, 67, 68, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, 81, 85, 86, 89, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 110, 111, 116, 117, 118, 119, 63, 126, 127], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/isolate.py": [61, 62], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/person.py": [1, 2, 3, 4, 5, 6, 7, 8, 10, 11], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/__init__.py": [1], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/person_unit_test.py": [1, 2, 4, 6, 7, 8, 10, 11, 12, 14], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/living_space.py": [], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/office.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/cover.py": [164, 263, 173, 271, 182, 183], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/xunit.py": [192, 193, 191], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/context.py": [1, 2, 3, 5], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/manager.py": [128, 262, 263, 264, 265, 272, 273, 274, 149, 167, 166, 295, 168, 169, 301, 302, 177, 178, 184, 249, 88, 89, 93, 94, 95, 96, 99, 252, 106, 107, 111, 114, 123, 118, 105, 120, 121, 250, 251, 124, 253, 254], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/skip.py": [57, 59, 60, 61], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/debug.py": [40, 41, 42, 43], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/base.py": [98, 100, 101, 102], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/fellow.py": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20, 21, 22], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/pkg_resources/_vendor/six.py": [185, 187], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/selector.py": [129, 130, 131, 134, 135, 171, 68, 69, 162, 35, 37, 167, 40, 41, 42, 43, 44, 45, 174, 175, 176, 178, 179, 53, 54, 57, 187, 188, 191, 193, 194, 196, 197, 72, 73, 74, 76, 77, 80, 81, 163, 169, 222, 224, 225, 226, 227, 228, 229, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 116, 117, 118, 119, 120, 121, 122, 123, 170, 126, 127], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/amity.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/deprecated.py": [40, 42, 43, 44], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/util.py": [320, 446, 662, 263, 520, 521, 266, 267, 140, 397, 270, 271, 272, 273, 274, 403, 276, 277, 278, 279, 408, 409, 410, 411, 312, 163, 164, 406, 470, 264, 306, 307, 308, 309, 310, 393, 184, 313, 187, 188, 189, 190, 191, 192, 321, 322, 195, 407, 471, 447, 311, 663, 337, 338, 339, 340, 398, 342, 343, 399, 479, 323, 481, 483, 484, 485, 486, 449, 404, 448, 660, 318, 502, 503, 504, 505, 506, 319, 405], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/testid.py": [137, 138, 142, 143, 144, 145, 148, 149, 150, 151, 154, 155], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/termstyle.py": [43, 44, 62, 63], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/result.py": [38, 39, 40, 41, 43, 44], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/logcapture.py": [34, 38, 39, 40, 41, 44, 178, 179, 193, 194, 195, 196, 198, 199, 76, 204, 77, 78, 207, 80, 209, 86, 217, 79, 222, 208], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/capture.py": [64, 96, 98, 69, 102, 97, 58, 59, 101], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/failuredetail.py": [33, 35, 36], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/case.py": [128, 129, 130, 131, 132, 133, 140, 147, 148, 149, 151, 29, 33, 34, 36, 37, 38, 39, 40, 41, 42, 45, 59, 60, 64, 69, 70, 74, 99, 100, 101, 102, 103, 104]}} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 25c15ba..1c63b78 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: python python: - - "2.7" + - "3.4" before_script: - pip install -r requirements.txt script: diff --git a/lib/fellow.py b/lib/fellow.py index e69de29..b6fe7f1 100644 --- a/lib/fellow.py +++ b/lib/fellow.py @@ -0,0 +1,22 @@ +""" + Fellow resides here + +""" +from .person import Person + +class Fellow(Person): + def __init__(self, name, amity_interest = "N", amity_room_name = None): + super(Fellow, self).__init__(name) + self.amity_interest = amity_interest + self.amity_room_name = amity_room_name + + def set_amity_interest(self, amity_interest): + self.amity_interest = amity_interest + + def set_amity_room_name(self, amity_room_name): + self.amity_room_name = amity_room_name + + def show_fellow_info(self): + print("Name: %s" % (self.name)) + print("Office: %s" % (self.office_name)) + print("Amity Room: %s" % (self.amity_room_name)) \ No newline at end of file diff --git a/lib/fellow.pyc b/lib/fellow.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f3462e3ee9cdcf537a0a7411795f2a18e32e53c7 GIT binary patch literal 1482 zcmcIkO>fgc5S_J~KtiDvNEO_CLGl4%;D`|78%_ZkAw({#U~d$c#2aNdsv_mq{yKgM zcm4qHjcH4dNNwbu%+9WN-n@D1^!Lr-ub+3nR`U0k;{OFkcmz|6jA4z`iOh{G5*a6A z>Qr1JQ$%;o6r4GwsN7VUC3r`<%Yw?U^S9z=gfa z6kt|DZQPMl^d;YkH(RsZ6Av1)gg!j!}Z;%esQFnP6x3=~b g(6JPJ4)7T(;fa10t_+p(^sHm%Ie7^*eY2nZ0jp6#-T(jq literal 0 HcmV?d00001 diff --git a/lib/person.pyc b/lib/person.pyc index 7c1b50af05b995267f572060565f7da675cc32e3..1e65ac491485dff8d74eb2c11ac9ca9ba989bbe4 100644 GIT binary patch delta 15 WcmbQrK9!w~`7@xu(1O#IM delta 15 WcmZ3$xPXzJ`75EUy3n delta 85 zcmZo;p1~x|{F#^Q#bwd(WCkc;0n!dYTFl0GAvLfB*mh diff --git a/tests/fellow_test.py b/tests/fellow_test.py new file mode 100644 index 0000000..ffe2dbe --- /dev/null +++ b/tests/fellow_test.py @@ -0,0 +1,24 @@ +import unittest +from .context import Fellow + +class TestFellow(unittest.TestCase): + def test_fellow_is_initialized_with_name(self): + man = Fellow("Yusuf") + self.assertEqual("Yusuf", man.name) + + def test_set_amity_interest(self): + man = Fellow("Yusuf") + man.set_amity_interest("Y") + self.assertEqual("Y", man.amity_interest) + + def test_set_amity_room_name(self): + man = Fellow("Yusuf") + man.set_amity_room_name("Yacht") + self.assertEqual("Yacht", man.amity_room_name) + + def test_show_fellow_info(self): + man = Fellow("Yusuf") + self.assertIsNone(man.show_fellow_info()) + +if __name__ == '__main__': + unittest.main() diff --git a/tests/fellow_test.pyc b/tests/fellow_test.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc8b974379f55cacada0b91ecaaa250533ce2349 GIT binary patch literal 1736 zcmcgsO>fgc5S?{CASH#03Q^AG-~+;NM+i|sLP9yXMX0%~EPJCk^+%gss}#X0ocU$^ z8-4)1w+?A&xu%wPJiF_eee-r^I={BJe*E0~l*;ny;QI>0#t<1^C56ZsN+4NB3MFMA z<3Lo_6(ch1$V5rjlkXx6k>fE|dy@6#B#`;Y|Iz1$s=TYi@D|+WzwwN61vR8_eTa9a zDC%>!1@*{S*G^Zk_}gm?`vd~#j&Z2)P(T4hDjh zI1g!|$%l=mAgDC@-HUS=ee6|B4ZSmFhvd3bxNMm%{nDu z0+fIZC5rrj>A>^Tx#Wl8jbgIo$nmkKyCvv8=GHi!l)1YAB4_3R8Pmeuh4^>f(-sqA z%xu^sUk{0Zd|gL3z?S9tq-c8sB>7BA(y3b`YL|zuh?>`R>94D0>K-;*rdAs_NYx%r zze3dt2Ji5HTrn9AxVKN^^@Q>@wk$BT3#8R$jrkl}E3YAp+wyvEM|EY~4qZ;`^Hr8t zlllgkc)(zM(p;Rt;;%V3Zr$*{ui@%#Jt&{l9e4#w#SG_6s!pIuweG(N)4L1K+}88dX>>F8wB WQFwGOS{`3AA|K6A?F5f@hw2YggO6tb literal 0 HcmV?d00001 diff --git a/tests/person_unit_test.py b/tests/person_test.py similarity index 100% rename from tests/person_unit_test.py rename to tests/person_test.py diff --git a/tests/person_test.pyc b/tests/person_test.pyc new file mode 100644 index 0000000000000000000000000000000000000000..32012477e50f3f666c66c1054f788a452c901062 GIT binary patch literal 1736 zcmc&!%Wl&^6usj-pe3ahED$>u2w4JZ*dv4}ERY~V(<0PtMuR<}Q=D3!W;zy0OP%aRsXkDm|tj+#xye?>LXgq@749@UCw z8BH=$Ri7NuVUMPYssVi_Iw9Jh@aTZ5A-&0HK9&_jOsF8CcJp%_)_>z`>=nB?Od7Iz z?&h%xX`S6Y7gP88qbw|Y$alQOhVxE1DIqDB!X?7#p+q=+6bffRdN=R$h7#K|zR}$d z-|+^UBqi~tlZ-wo`pDgIRCW{{%Al%&ZNw71QBd5GYS5Ffn&1}f|L1N-l_KFw0F&4*_4gRn#9yMhx$4zj0jR*cA4%?{w*Elq7GAmGAIS8xTe7iy~$=N0`dO( zp`da4L5vZ}huK;mzeSZZ>w__JEXzpCrv=!OAkUHyWcNOGp9q`xcxJ~&Cn5C~kI3nU ZAZOi$RClk#@jg0|ZboV=yLx$~z5~~)kv#wa literal 0 HcmV?d00001 diff --git a/tests/person_unit_test.pyc b/tests/person_unit_test.pyc index 3925adfa11a4a4699d80b87a85d2f94fdf5844dc..6a48eabf96900074d16d3c98911adf40b58e7033 100644 GIT binary patch delta 15 WcmaFH`;3>3`73`7 Date: Thu, 21 Apr 2016 15:54:26 +0100 Subject: [PATCH 2/2] complete test and model for staff --- .coverage | 2 +- lib/staff.py | 9 +++++++++ lib/staff.pyc | Bin 0 -> 894 bytes tests/context.py | 3 ++- tests/context.pyc | Bin 390 -> 442 bytes tests/staff_test.py | 14 ++++++++++++++ tests/staff_test.pyc | Bin 0 -> 1105 bytes 7 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 lib/staff.pyc create mode 100644 tests/staff_test.py create mode 100644 tests/staff_test.pyc diff --git a/.coverage b/.coverage index 13b07c8..c0cfdf5 100644 --- a/.coverage +++ b/.coverage @@ -1 +1 @@ -!coverage.py: This is a private format, don't read it directly!{"lines": {"/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/pkg_resources/extern/__init__.py": [27, 28, 29], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/core.py": [65, 34, 36, 37, 50, 51, 55, 56, 59, 188, 61, 62, 193, 66, 199, 200, 201, 202, 203, 204, 205, 206, 207, 187, 60], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/multiprocess.py": [224, 225, 226, 227, 231, 233, 234, 235, 238, 223], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/proxy.py": [30, 163, 164, 165, 168, 169, 170, 43, 45, 46, 47, 176, 177, 178, 57, 58, 59, 60, 61, 62, 63, 64, 78, 80, 81, 82, 83, 102, 103, 104, 110, 111, 112, 116, 117, 118], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/staff.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/loader.py": [522, 523, 540, 541, 542, 547, 550, 551, 559, 564, 566, 567, 569, 570, 79, 81, 82, 83, 84, 85, 86, 89, 90, 91, 92, 93, 94, 95, 97, 99, 105, 108, 109, 110, 112, 113, 114, 116, 119, 121, 122, 123, 128, 131, 134, 135, 143, 144, 145, 146, 147, 149, 150, 151, 154, 156, 157, 158, 159, 160, 161, 170, 177, 178, 179, 180, 181, 182, 183, 186, 196, 197, 200, 201, 209, 210, 211, 212, 314, 315, 316, 317, 321, 322, 323, 325, 326, 327, 328, 330, 331, 332, 333, 338, 340, 341, 343, 344, 345, 346, 347, 348, 349, 350, 353, 354, 356, 359, 369, 371, 374, 375, 378, 379, 404, 405, 406, 409, 410, 416, 417, 418, 420, 421, 428, 431, 432, 433, 473, 474, 475, 476, 481, 486, 487, 488, 493, 494], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/__main__.py": [1], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/errorclass.py": [148, 150, 151, 152, 153, 154], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/prof.py": [71, 74, 75, 76, 80, 81, 82, 83, 84, 57], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/__init__.py": [1], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/rednose.py": [384, 129, 130, 387, 133, 390, 385, 139, 140, 141, 144, 153, 154, 155, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 391, 373, 386, 219, 220, 223, 224, 225, 229, 230, 233, 234, 237, 371, 372, 254, 380, 126, 255], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/pyversion.py": [70, 136, 49, 50, 51, 52, 53, 54, 56, 58], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/doctests.py": [192, 193, 194, 195, 188, 189, 190, 191], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/suite.py": [539, 540, 543, 544, 545, 546, 547, 548, 551, 552, 554, 563, 564, 53, 567, 68, 79, 80, 81, 94, 95, 96, 97, 98, 103, 104, 105, 107, 113, 114, 148, 149, 150, 151, 153, 154, 155, 156, 157, 158, 173, 177, 201, 204, 205, 208, 209, 216, 217, 218, 224, 226, 227, 228, 269, 270, 274, 277, 278, 282, 283, 285, 286, 287, 288, 289, 290, 291, 292, 293, 297, 298, 301, 302, 303, 304, 308, 309, 310, 312, 52, 314, 315, 323, 324, 329, 330, 331, 337, 338, 339, 340, 341, 342, 313, 345, 346, 347, 348, 349, 350, 351, 356, 357, 358, 360, 361, 362, 364, 365, 366, 367, 368, 372, 373, 374, 394, 396, 397, 401, 402, 403, 404, 405, 406, 407, 418, 419, 420, 421, 422, 423, 424, 427, 435, 436, 441, 443, 445, 446, 447, 448, 451, 452, 453, 454, 457, 459, 460, 462, 463, 465, 466, 467, 471, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/importer.py": [128, 129, 130, 131, 132, 65, 143, 144, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 32, 161, 165, 166, 167, 40, 41, 42, 44, 45, 47, 30, 54, 59, 62, 53, 160, 66, 67, 68, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, 81, 85, 86, 89, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 110, 111, 116, 117, 118, 119, 63, 126, 127], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/isolate.py": [61, 62], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/person.py": [1, 2, 3, 4, 5, 6, 7, 8, 10, 11], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/__init__.py": [1], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/person_unit_test.py": [1, 2, 4, 6, 7, 8, 10, 11, 12, 14], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/living_space.py": [], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/office.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/cover.py": [164, 263, 173, 271, 182, 183], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/xunit.py": [192, 193, 191], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/context.py": [1, 2, 3, 5], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/manager.py": [128, 262, 263, 264, 265, 272, 273, 274, 149, 167, 166, 295, 168, 169, 301, 302, 177, 178, 184, 249, 88, 89, 93, 94, 95, 96, 99, 252, 106, 107, 111, 114, 123, 118, 105, 120, 121, 250, 251, 124, 253, 254], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/skip.py": [57, 59, 60, 61], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/debug.py": [40, 41, 42, 43], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/base.py": [98, 100, 101, 102], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/fellow.py": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20, 21, 22], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/pkg_resources/_vendor/six.py": [185, 187], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/selector.py": [129, 130, 131, 134, 135, 171, 68, 69, 162, 35, 37, 167, 40, 41, 42, 43, 44, 45, 174, 175, 176, 178, 179, 53, 54, 57, 187, 188, 191, 193, 194, 196, 197, 72, 73, 74, 76, 77, 80, 81, 163, 169, 222, 224, 225, 226, 227, 228, 229, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 116, 117, 118, 119, 120, 121, 122, 123, 170, 126, 127], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/amity.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/deprecated.py": [40, 42, 43, 44], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/util.py": [320, 446, 662, 263, 520, 521, 266, 267, 140, 397, 270, 271, 272, 273, 274, 403, 276, 277, 278, 279, 408, 409, 410, 411, 312, 163, 164, 406, 470, 264, 306, 307, 308, 309, 310, 393, 184, 313, 187, 188, 189, 190, 191, 192, 321, 322, 195, 407, 471, 447, 311, 663, 337, 338, 339, 340, 398, 342, 343, 399, 479, 323, 481, 483, 484, 485, 486, 449, 404, 448, 660, 318, 502, 503, 504, 505, 506, 319, 405], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/testid.py": [137, 138, 142, 143, 144, 145, 148, 149, 150, 151, 154, 155], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/termstyle.py": [43, 44, 62, 63], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/result.py": [38, 39, 40, 41, 43, 44], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/logcapture.py": [34, 38, 39, 40, 41, 44, 178, 179, 193, 194, 195, 196, 198, 199, 76, 204, 77, 78, 207, 80, 209, 86, 217, 79, 222, 208], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/capture.py": [64, 96, 98, 69, 102, 97, 58, 59, 101], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/failuredetail.py": [33, 35, 36], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/case.py": [128, 129, 130, 131, 132, 133, 140, 147, 148, 149, 151, 29, 33, 34, 36, 37, 38, 39, 40, 41, 42, 45, 59, 60, 64, 69, 70, 74, 99, 100, 101, 102, 103, 104]}} \ No newline at end of file +!coverage.py: This is a private format, don't read it directly!{"lines": {"/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/pkg_resources/extern/__init__.py": [27, 28, 29], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/core.py": [65, 34, 36, 37, 50, 51, 55, 56, 59, 188, 61, 62, 193, 66, 199, 200, 201, 202, 203, 204, 205, 206, 207, 187, 60], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/multiprocess.py": [224, 225, 226, 227, 231, 233, 234, 235, 238, 223], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/pkg_resources/_vendor/six.py": [185, 187], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/staff.py": [1, 3, 4, 5, 7, 8, 9], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/loader.py": [522, 523, 540, 541, 542, 547, 550, 551, 559, 564, 566, 567, 569, 570, 79, 81, 82, 83, 84, 85, 86, 89, 90, 91, 92, 93, 94, 95, 97, 99, 105, 108, 109, 110, 112, 113, 114, 116, 119, 121, 122, 123, 128, 131, 134, 135, 143, 144, 145, 146, 147, 149, 150, 151, 154, 156, 157, 158, 159, 160, 161, 170, 177, 178, 179, 180, 181, 182, 183, 186, 196, 197, 200, 201, 209, 210, 211, 212, 314, 315, 316, 317, 321, 322, 323, 325, 326, 327, 328, 330, 331, 332, 333, 338, 340, 341, 343, 344, 345, 346, 347, 348, 349, 350, 353, 354, 356, 359, 369, 371, 374, 375, 378, 379, 404, 405, 406, 409, 410, 416, 417, 418, 420, 421, 428, 431, 432, 433, 473, 474, 475, 476, 481, 486, 487, 488, 493, 494], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/__main__.py": [1], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/errorclass.py": [148, 150, 151, 152, 153, 154], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/prof.py": [71, 74, 75, 76, 80, 81, 82, 83, 84, 57], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/__init__.py": [1], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/rednose.py": [384, 129, 130, 387, 133, 390, 385, 139, 140, 141, 144, 153, 154, 155, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 391, 373, 386, 219, 220, 223, 224, 225, 229, 230, 233, 234, 237, 371, 372, 254, 380, 126, 255], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/pyversion.py": [70, 136, 49, 50, 51, 52, 53, 54, 56, 58], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/doctests.py": [192, 193, 194, 195, 188, 189, 190, 191], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/suite.py": [539, 540, 543, 544, 545, 546, 547, 548, 551, 552, 554, 563, 564, 53, 567, 68, 79, 80, 81, 94, 95, 96, 97, 98, 103, 104, 105, 107, 113, 114, 148, 149, 150, 151, 153, 154, 155, 156, 157, 158, 173, 177, 201, 204, 205, 208, 209, 216, 217, 218, 224, 226, 227, 228, 269, 270, 274, 277, 278, 282, 283, 285, 286, 287, 288, 289, 290, 291, 292, 293, 297, 298, 301, 302, 303, 304, 308, 309, 310, 312, 52, 314, 315, 323, 324, 329, 330, 331, 337, 338, 339, 340, 341, 342, 313, 345, 346, 347, 348, 349, 350, 351, 356, 357, 358, 360, 361, 362, 364, 365, 366, 367, 368, 372, 373, 374, 394, 396, 397, 401, 402, 403, 404, 405, 406, 407, 418, 419, 420, 421, 422, 423, 424, 427, 435, 436, 441, 443, 445, 446, 447, 448, 451, 452, 453, 454, 457, 459, 460, 462, 463, 465, 466, 467, 471, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/importer.py": [128, 129, 130, 131, 132, 65, 143, 144, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 32, 161, 165, 166, 167, 40, 41, 42, 44, 45, 47, 30, 54, 59, 62, 53, 160, 66, 67, 68, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, 81, 85, 86, 89, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 110, 111, 116, 117, 118, 119, 63, 126, 127], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/isolate.py": [61, 62], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/person.py": [1, 2, 3, 4, 5, 6, 7, 8, 10, 11], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/__init__.py": [1], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/person_unit_test.py": [1, 2, 4, 6, 7, 8, 10, 11, 12, 14], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/living_space.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/proxy.py": [30, 163, 164, 165, 168, 169, 170, 43, 45, 46, 47, 176, 177, 178, 57, 58, 59, 60, 61, 62, 63, 64, 78, 80, 81, 82, 83, 102, 103, 104, 110, 111, 112, 116, 117, 118], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/office.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/cover.py": [164, 263, 173, 271, 182, 183], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/xunit.py": [192, 193, 191], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/tests/context.py": [1, 2, 3, 5], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/manager.py": [128, 262, 263, 264, 265, 272, 273, 274, 149, 167, 166, 295, 168, 169, 301, 302, 177, 178, 184, 249, 88, 89, 93, 94, 95, 96, 99, 252, 106, 107, 111, 114, 123, 118, 105, 120, 121, 250, 251, 124, 253, 254], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/skip.py": [57, 59, 60, 61], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/debug.py": [40, 41, 42, 43], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/util.py": [320, 446, 662, 263, 520, 521, 266, 267, 140, 397, 270, 271, 272, 273, 274, 403, 276, 277, 278, 279, 408, 409, 410, 411, 312, 163, 164, 406, 470, 264, 306, 307, 308, 309, 310, 393, 184, 313, 187, 188, 189, 190, 191, 192, 321, 322, 195, 407, 471, 447, 311, 663, 337, 338, 339, 340, 398, 342, 343, 399, 479, 323, 481, 483, 484, 485, 486, 449, 404, 448, 660, 318, 502, 503, 504, 505, 506, 319, 405], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/fellow.py": [1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20, 21, 22], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/termstyle.py": [43, 44, 62, 63], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/selector.py": [129, 130, 131, 134, 135, 171, 68, 69, 162, 35, 37, 167, 40, 41, 42, 43, 44, 45, 174, 175, 176, 178, 179, 53, 54, 57, 187, 188, 191, 193, 194, 196, 197, 72, 73, 74, 76, 77, 80, 81, 163, 169, 222, 224, 225, 226, 227, 228, 229, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 116, 117, 118, 119, 120, 121, 122, 123, 170, 126, 127], "/Users/ydaniju/Documents/checkpoints/python/1/allocator/lib/amity.py": [], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/deprecated.py": [40, 42, 43, 44], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/base.py": [98, 100, 101, 102], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/testid.py": [137, 138, 142, 143, 144, 145, 148, 149, 150, 151, 154, 155], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/result.py": [38, 39, 40, 41, 43, 44], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/logcapture.py": [34, 38, 39, 40, 41, 44, 178, 179, 193, 194, 195, 196, 198, 199, 76, 204, 77, 78, 207, 80, 209, 86, 217, 79, 222, 208], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/capture.py": [64, 96, 98, 69, 102, 97, 58, 59, 101], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/plugins/failuredetail.py": [33, 35, 36], "/Users/ydaniju/.virtualenvs/allocator/lib/python2.7/site-packages/nose/case.py": [128, 129, 130, 131, 132, 133, 140, 147, 148, 149, 151, 29, 33, 34, 36, 37, 38, 39, 40, 41, 42, 45, 59, 60, 64, 69, 70, 74, 99, 100, 101, 102, 103, 104]}} \ No newline at end of file diff --git a/lib/staff.py b/lib/staff.py index e69de29..57ba007 100644 --- a/lib/staff.py +++ b/lib/staff.py @@ -0,0 +1,9 @@ +from .person import Person + +class Staff(Person): + def __init__(self, name): + super(Staff, self).__init__(name) + + def show_staff_info(self): + print("Name: %s" % (self.name)) + print("Office: %s" % (self.office_name)) \ No newline at end of file diff --git a/lib/staff.pyc b/lib/staff.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f7b271a2a72cfcbae196e434578e68b1b67e2131 GIT binary patch literal 894 zcmcIiO-sW-5S>lxS5@>RA|AX5!Gpo8h=>;SR3)W|y(}@=(9|?rx*Md>Tm7s40{?*X z#-e|~hRpQsN9MgZo$zb7-Typ%&S?3B{CmUU&N$`#DyoRaiUx{Q9*|K~D9S_nAX*T; z30H?%1puo7%fL8=CBGVoTu3%nxlHU&Luu*(~*T8dv3O>|ptP zGD{#uh~R=$1}z9I#n3SWw#{xvL>ma|&8ZS>yoon;ru_($+mf|Ks zqy07~D+gK(fhhs~3at4(uIq;OU5i<6ZDBXC1wK+cDgy8ju0@U39>TRA+q|ia*3z5= v-~7oF^ndL~1JFPbwXU|p<#1p^c{F%J6GkK>vMLeMf~z0X*AV3J=kEvKEk(bX literal 0 HcmV?d00001 diff --git a/tests/context.py b/tests/context.py index b4d1c4b..846a364 100644 --- a/tests/context.py +++ b/tests/context.py @@ -3,4 +3,5 @@ sys.path.insert(0, os.path.abspath('..')) from lib.person import Person -from lib.fellow import Fellow \ No newline at end of file +from lib.fellow import Fellow +from lib.staff import Staff \ No newline at end of file diff --git a/tests/context.pyc b/tests/context.pyc index 91e3c9d5b606f959bf9811c7cca0cee2b8de7d3b..7715f2cf614af6d2fb3496289d156304dd8c3f70 100644 GIT binary patch delta 116 zcmZo;-o-4<{F#^Q>SKxUWCkc;0n!dYT%0{oI$D&0A%%@0hm#?fiy?}OfiZ=VAy|Wb zVzrq7BTz{RE072-NlZ)A;GVcCN}z-j$j`}4(klju1u;$LWGv+40*di4@-WIX2`~yU F0stSJ6-EF6 delta 66 zcmdnR+{P@;{F#^Q(RA_fWCkc;0n!dYTpT@7I+~S{Ay|WLVz(J1=fsOqlkFJucsPJ^ MJd8Yy@=OAZ0LT6e5dZ)H diff --git a/tests/staff_test.py b/tests/staff_test.py new file mode 100644 index 0000000..3402af7 --- /dev/null +++ b/tests/staff_test.py @@ -0,0 +1,14 @@ +import unittest +from .context import Staff + +class TestFellow(unittest.TestCase): + def test_staff_is_initialized_with_name(self): + man = Staff("Makinwa") + self.assertEqual("Makinwa", man.name) + + def test_show_staff_info(self): + man = Staff("Makinwa") + self.assertIsNone(man.show_staff_info()) + +if __name__ == '__main__': + unittest.main() diff --git a/tests/staff_test.pyc b/tests/staff_test.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3d46c06afc5cf7f18d25c16daadbc6516e7f1364 GIT binary patch literal 1105 zcmcIjO^?$s5FICNp-T}QH~?2JIT3M32vI;Me^<2TQf^yl5P&5ws4OFFa^<4g2Vz*P7YHAD-5gsPMpMQuWhgj6*k zOSDRZRdslQWbEc@Sl^;HNkf zlL6NIWf!#bj-6@TS6k_=QV@cVkF+^ClcfVB8xcs9|mKr9~H<%3cd}aqdZ#2Qq#Ka zs=l#W7xL_dl;2;fCwag^%2U`xZX-1w9B8%1d9C9Q5?6XWtK=06vg|zDFTAfsN#g=L jQxj|qS4efnB9tH}P9TzdzSr%ABol