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

PictureCacheTests   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 17
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A test_Serialize() 0 4 1
A test_Stored_picture_can_be_retrieved_as_filepath() 0 3 1
A test_Stored_picture_can_be_retrieved_as_bytes() 0 3 1
A test_Provides_new_picture_file_handle() 0 2 1
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