Completed
Pull Request — master (#136)
by Jasper
01:24
created

PictureCacheTests.test_Serialize()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 4
rs 10
1
from unittest import TestCase
2
from mock import Mock, sentinel, patch
3
4
5
class PictureCacheTests(TestCase):
6
7
    def test_Serialize(self):
8
        from niprov.pictures import PictureCache
9
        pictures = PictureCache(sentinel.dependencies)
10
        pictures.serializeSingle(sentinel.img)
11
12
    def test_Provides_new_picture_file_handle(self):
13
        pass
14
15
    def test_Stored_picture_can_be_retrieved_as_filepath(self):
16
        # store(fhandle) - > serialize() / getPictureFilepathFor()
17
        pass
18
19
    def test_Stored_picture_can_be_retrieved_as_bytes(self):
20
        # store(fhandle) - > getPictureDataFor()
21
        pass
22
23